package com.example.goods.bean;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 *商品信息
 * @author ouyangzhixiang
 * @date 2018/7/4
 */
@Data
@Entity
public class ProductInfo {
    @Id
    /**
     * 商品Id
     */
    private String productId;
    /**
     * 商品名
     */
    @NotEmpty(message = "商品名不能为空")
    private String productName;
    /**
     * 商品价格
     */
    private BigDecimal productPrice;
    /**
     * 商品图标
     */
    private String productIcon;

}
